import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import { RouterModule } from '@angular/router';

import {NzIconModule} from 'ng-zorro-antd/icon';
import {AlertFill} from '@ant-design/icons-angular/icons';
import {IconDefinition} from '@ant-design/icons-angular';
import {DemoNgZorroAntdModule} from '../../NG-ZORRO/ng-zorro-antd.module';

import { SendTypeStatusPipe } from './customer-manage.pipe';

// 封装组件module
import {sharedModule} from '../../sharedModule/shared.module';
import {CustomerManageRoutingModule} from './customer-manage-routing.module';
import { SendEmailsComponent } from './email-manage/send-emails/send-emails.component';
import { EmailManageComponent } from './email-manage/email-manage.component';
import {NzTimePickerModule} from 'ng-zorro-antd/time-picker';

const icons: IconDefinition[] = [AlertFill];

const pipeArrs = [
  SendTypeStatusPipe
];

@NgModule({
  declarations: [
    ...pipeArrs,
    SendEmailsComponent,
    EmailManageComponent
  ],
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    RouterModule,
    sharedModule,
    DemoNgZorroAntdModule,
    NzIconModule.forRoot(icons),
    CustomerManageRoutingModule,
    NzTimePickerModule,
  ]
})
export class CustomerManageModule {}
